import request from "@/admin/utils/request"

//添加
export function addPermit(data) {
    return request({
        url: "/apis/base/permit", method: "post", data
    });
}

//列表
export function permitList(params) {
    return request({
        url: "/apis/base/permit", method: "get", params
    });
}

//删除
export function delPermit(id) {
    return request({
        url: `/apis/base/permit/${id}`, method: "delete",
    });
}

//更新
export function upDatePermit(data, id) {
    return request({
        url: `/apis/base/permit/${id}`, method: "put", data
    });
}
